/*
 * @Description:
 * @Autor: dengyongliang
 * @Date: 2021-04-14 16:12:55
 * @LastEditors: dengyongliang
 * @LastEditTime: 2021-04-17 09:42:55
 */
// import Layout from '@/layout'

const componentsRouter = {
  path: 'components',
  component: {
    render: h => h('router-view')
  },
  redirect: 'noRedirect',
  name: 'ComponentDemo',
  meta: {
    title: '小工具',
    type: 'demo',
    icon: ''
  },
  children: [
    {
      path: 'clipboard',
      component: () => import('@/views/demos/components-demo/clipboard'),
      name: 'ClipboardDemo',
      meta: { title: '复制黏贴', icon: '', type: 'demo' }
    },
    {
      path: 'markdown',
      component: () => import('@/views/demos/components-demo/markdown'),
      name: 'MarkdownDemo',
      meta: { title: 'Markdown', type: 'demo' }
    },
    {
      path: 'json-editor',
      component: () => import('@/views/demos/components-demo/json-editor'),
      name: 'JsonEditorDemo',
      meta: { title: 'JSON Editor', type: 'demo' }
    },
    {
      path: 'dropzone',
      component: () => import('@/views/demos/components-demo/dropzone'),
      name: 'DropzoneDemo',
      meta: { title: 'Dropzone', type: 'demo' }
    },
    {
      path: 'count-to',
      component: () => import('@/views/demos/components-demo/count-to'),
      name: 'CountToDemo',
      meta: { title: 'Count To', type: 'demo' }
    },
    {
      path: 'dnd-list',
      component: () => import('@/views/demos/components-demo/dnd-list'),
      name: 'DndListDemo',
      meta: { title: 'Dnd List', type: 'demo' }
    },
    {
      path: 'drag-kanban',
      component: () => import('@/views/demos/components-demo/drag-kanban'),
      name: 'DragKanbanDemo',
      meta: { title: 'Drag Kanban', type: 'demo' }
    }
  ]
}

export default componentsRouter
